<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>EDE图形化编程</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_1381420_8u2nivhyl4v.css"/>
    <link rel="stylesheet" href="${request.contextPath}/statics/css/bootstrap.min.css">
    <link rel="stylesheet" href="${request.contextPath}/statics/css/font-awesome.min.css">
    <link rel="stylesheet" href="${request.contextPath}/statics/css/AdminLTE.min.css">
    <link rel="stylesheet" href="${request.contextPath}/statics/plugins/layui2.5.4/css/layui.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="${request.contextPath}/statics/css/all-skins.min.css">
    <link rel="stylesheet" href="${request.contextPath}/statics/css/main.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<!-- ADD THE CLASS layout-boxed TO GET A BOXED LAYOUT -->
<body class="hold-transition skin-blue sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper" id="rrapp" v-cloak>
    <header class="main-header">
        <a href="javascript:void(0);" class="logo">
            <img class="logo-mini"
                 src="${request.contextPath}/statics/file/logo.png"/>
            <!-- mini logo for sidebar mini 50x50 pixels -->

            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg">  <img
                    src="${request.contextPath}/statics/file/logo.png"/><b>{{sysAttrConfigEntity.sysName}}</b></span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top" role="navigation">
            <!-- Sidebar toggle button-->
            <a href="#" class="iconfont icondaohangpinlei nav-icon" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <a href="#" class="iconfont iconshuaxin nav-icon" data-toggle="" role="button" @click="refresh()">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <div style="float:left;color:#fff;padding:10px 5px 0px 0px;font-size: 22px" class="iconfont "></div>
            <!--  <div style="float:left;color:#fff;padding:15px 10px;">欢迎 {{user.username}}</div>-->
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!-- <li><a href="javascript:;" @click="donate"><i class="fa fa-jpy"></i> &nbsp;捐赠作者</a></li>
                     <li><a href="http://www.renren.io" target="_blank"><i class="fa fa-home"></i> &nbsp;人人开源</a></li>
                     <li><a href="javascript:;" @click="updatePassword"><i class="fa fa-lock"></i> &nbsp;修改密码</a></li>-->
                    <li><a href="logout"><i class="fa fa-sign-out"></i> &nbsp;退出系统</a></li>
                </ul>
            </div>
        </nav>
    </header>

    <!-- =============================================== -->

    <!-- Left side column. contains the sidebar -->
    <aside class="main-sidebar" >
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- /.search form -->
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu" v-show="!isAdmin">
                <li class="header">文件</li>
                <li class="menu-item">
                    <a data-href="#modules/front/addProject.html">
                        <i class="fa fa-plus-circle"></i><span>&nbsp;&nbsp;新建工程</span>
                    </a>
                </li>
                <li class="menu-item">
                    <a :data-href="'#modules/front/myproject.html?id='+projectId" @click="saveProject">
                        <i class="fa fa-floppy-o"></i><span>&nbsp;&nbsp;保存工程</span>
                    </a>
                </li>
                <li class="menu-item"><a data-href="#modules/front/import.html">
                    <i class="fa fa-upload"></i>&nbsp;&nbsp;<span>导入本地工程</span></a>
                </li>
                <li class="menu-item">
                    <a :data-href="'#modules/front/myproject.html?id='+projectId" @click="exportProject"><i
                            class="fa fa-download"></i>&nbsp;&nbsp;<span>导出本地工程</span></a>
                </li>
                <li class="menu-item">
                    <a data-href="#modules/front/projects.html"><i
                            class="fa fa-folder"></i><span>&nbsp;&nbsp;我的工程</span></a>
                </li>
            </ul>

            <!--<div style="height: 5px;"></div>-->

            <ul class="sidebar-menu" v-show="!isAdmin">
                <li class="header">学习和反馈</li>
                <li class="menu-item">
                    <a data-href="#modules/front/video.html"><i
                            class="fa fa-video-camera"></i>&nbsp;<span>&nbsp;在线视频</span></a>
                </li>
                <li class="menu-item">
                    <a data-href="#modules/front/leave.html"><i
                            class="fa fa-commenting-o"></i>&nbsp;<span>&nbsp;留言板</span></a>
                </li>
                <li class="menu-item">
                    <a id='toolUrl'><i class="fa fa-archive"></i>&nbsp;<span>&nbsp;工具箱</span></a>
                </li>
            </ul>

            <!--<div style="height: 5px;"></div>-->

            <ul class="sidebar-menu sidebar-menu-text shuxing" v-show="!isAdmin" >
                <li id="attrStr" class="header">属性</li>
                <li id="attrVal">
                    <p class="sx-item"><span>无人机型号：</span>{{project.modelName}}</p>
                    <p class="sx-item"><span>场地大小：</span>{{project.areaL}}*{{project.areaW}}</p>
                    <p class="sx-item"><span>音乐名称：</span>{{project.musicName}}</p>
                </li>
            </ul>

            <ul class="sidebar-menu" v-show="isAdmin">
                <li class="header">基本配置</li>
                <li class="menu-item">
                    <a data-href="#modules/ede/sysattrconfig.html"><i
                            class="fa fa-sun-o"></i>&nbsp;<span>&nbsp;系统配置</span></a>
                </li>
                <li class="menu-item">
                    <a data-href="#modules/ede/model.html"><i
                            class="fa fa-plane"></i>&nbsp;<span>&nbsp;机型管理</span></a>
                </li>
                <li class="menu-item">
                    <a data-href="#modules/sys/user.html"><i
                            class="fa fa-user"></i>&nbsp;<span>&nbsp;会员管理</span></a>
                </li>
                <li class="menu-item">
                    <a data-href="#modules/ede/video.html"><i
                            class="fa fa-video-camera"></i>&nbsp;<span>&nbsp;视频管理</span></a>
                </li>
                <li class="menu-item">
                    <a data-href="#modules/ede/message.html"><i
                            class="fa fa-commenting-o"></i>&nbsp;<span>&nbsp;留言管理</span></a>
                </li>
                <!--<li class="menu-item">
                    <a data-href="#modules/oss/oss.html"><i
                            class="fa fa-file-image-o"></i>&nbsp;<span>&nbsp;文件上传</span></a>
                </li>-->
                <li class="menu-item">
                    <a data-href="#modules/ede/area.html"><i
                            class="fa fa-map"></i>&nbsp;<span>&nbsp;地毯管理</span></a>
                </li>
                <li class="menu-item">
                    <a data-href="#modules/ede/systool.html"><i
                            class="fa fa-map"></i>&nbsp;<span>&nbsp;工具箱管理</span></a>
                </li>
            </ul>

            <ul class="sidebar-menu" v-show="isAdmin">
                <li class="header">后台管理</li>
                <li class="menu-item">
                    <a data-href="#modules/sys/menu.html"><i
                            class="fa fa-th-list"></i>&nbsp;<span>&nbsp;菜单管理</span></a>
                </li>
                <li class="menu-item">
                    <a data-href="#modules/sys/role.html"><i
                            class="fa fa-user-secret"></i>&nbsp;<span>&nbsp;角色管理</span></a>
                </li>
                <li class="menu-item">
                    <a data-href="#modules/sys/dept.html"><i
                            class="fa fa-file-code-o"></i>&nbsp;<span>&nbsp;部门管理</span></a>
                </li>
                <!--<li class="menu-item">
                    <a data-href="#modules/sys/log.html"><i
                            class="fa fa-file-text-o"></i>&nbsp;<span>&nbsp;日志管理</span></a>
                </li>-->


            </ul>

            <ul class="sidebar-menu" style="height: 0">
                <li class="header">导航菜单</li>
                <menu-item :item="item" v-for="item in menuList"></menu-item>
            </ul>

        </section>

        <div class="sidebar-bottom" v-show="!isAdmin">
            <div class="slidebar-jdt">
                <span :style="'width:'+process+'%'"></span>
            </div>
            <div class="flex-Justified sb-text">
                <p class="sx-item">{{user.space}}/{{sysAttrConfigEntity.space}} MB</p>
                <!--<span>升级 </span>-->
            </div>
            <div class="sb-copy">版本 v1.0</div>
        </div>
        <!-- /.sidebar -->
    </aside>
    <!-- =============================================== -->
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="flex-Justified content-header">

            <div class="layui-tab" lay-filter="navFilter" lay-allowclose="true">
                <ul class="layui-tab-title">
                    <li class="first-tab" lay-id="#modules/front/index.html">
                        <i class="fa fa-home" style="font-size:20px;position:relative;top:2px;left:-3px;"></i>
                    </li>
                    <li lay-id="#modules/front/projects.html" class="layui-this" v-show="!isAdmin">我的工程</li>
                    <li lay-id="#modules/front/video.html" v-show="!isAdmin">在线视频</li>
                    <li lay-id="#modules/front/leave.html" v-show="!isAdmin">留言板</li>
                </ul>

            </div>
        </section>

        <!-- Main content -->
        <section class="content" style="background:#f2f3f8;">
            <iframe scrolling="yes" frameborder="0" id="frame"
                    style="width:100%;min-height:200px;overflow:visible;background:#fff;" :src="main"></iframe>
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <!-- <footer class="main-footer">
         <div class="pull-right hidden-xs">
             Version 4.0.0
         </div>
         Copyright &copy; 2019 <a href="https://www.renren.io" target="_blank">renren.io</a> All Rights Reserved
     </footer>-->

    <!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>

    <!-- 修改密码 -->
    <div id="passwordLayer" style="display: none;">
        <form class="form-horizontal">
            <div class="form-group">
                <div class="form-group">
                    <div class="col-sm-2 control-label">账号</div>
                    <span class="label label-success" style="vertical-align: bottom;">{{user.username}}</span>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">原密码</div>
                    <div class="col-sm-10">
                        <input type="password" class="form-control" v-model="password" placeholder="原密码"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">新密码</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="newPassword" placeholder="新密码"/>
                    </div>
                </div>
            </div>
        </form>
    </div>

</div>
<!-- ./wrapper -->


<script src="${request.contextPath}/statics/libs/jquery.min.js"></script>
<script src="${request.contextPath}/statics/libs/vue.min.js"></script>
<script src="${request.contextPath}/statics/libs/router.js"></script>
<script src="${request.contextPath}/statics/libs/bootstrap.min.js"></script>
<script src="${request.contextPath}/statics/libs/app.js"></script>
<script src="${request.contextPath}/statics/plugins/layer/layer.js"></script>
<script src="${request.contextPath}/statics/plugins/layui2.5.4/layui.js"></script>
<script src="${request.contextPath}/statics/js/index.js"></script>

<script>

</script>
</body>
</html>
